import { defineStore } from 'pinia';

export default defineStore('useAuthStore', {
    state: () => {
        return {
            collapse: false,
            menus: [],
            permissions: new Set()
        };
    },
    actions: {
        setAuth() {},
        clear() {
            this.collapse = false;
            this.menus.length = 0;
            this.permissions.clear();
        }
    }
});
